/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package readwritefile;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author sochy
 */
public class DemoWrite {
    public static void main(String[] args) {
        
        List<String> data = new ArrayList<String>();
        data.add("1:500:iPhone 5:Phone");
        data.add("2:600:Dell:Computer");
        
        
        MyFile file = new MyFile();
        
        try {
            file.writeLargerTextFile("C:\\test\\filename.txt", data);
            file.writeSmallTextFile(data, "C:\\test\\aaaa.txt");
        } catch (IOException ex) {
            System.out.println("Hello Error file");
        }
    }
}
